<?php
  include_once $_SERVER['DOCUMENT_ROOT'].'/PariGest/pages/inc/entete.php';
?>
<html>
<head>
  <script>
function afficheMsg(options)
{
	_msgOptions = options;
  afficheModal();
  if (typeof(_msgOptions.titre)=='string' )
	  top.$("msgTitle").innerHTML = _msgOptions.titre;
	if (typeof(_msgOptions.message)=='string' )
	  top.$("msgContent").innerHTML = _msgOptions.message;
	/*if (typeof(_msgOptions.msgCloseBtn)=='string' )
	  top.$("msgCloseBtn").innerHTML = _msgOptions.msgCloseBtn;*/
      
  top.$("msgBox").style.top = "298";
  top.$("msgBox").style.left = "398";
  top.$("msgBox").style.zIndex = "9000";
  top.$("msgCloseBtn").show();
  top.$("msgYesBtn").hide();
  top.$("msgNoBtn").hide();    
  top.$("msgBox").show();
  //top.$("msgCloseBtn").focus();
}

var _msgOptions = {};    
function afficheConfirm(options)
{
  _msgOptions = options;
  afficheModal();
  if (typeof(_msgOptions.titre)=='string' )
    top.$("msgTitle").innerHTML = _msgOptions.titre;
  if (typeof(_msgOptions.message)=='string' )
	  top.$("msgContent").innerHTML = _msgOptions.message;
  /*if (typeof(_msgOptions.msgCloseBtn)=='string' )
	  top.$("msgCloseBtn").innerHTML = _msgOptions.msgCloseBtn;
  if (typeof(_msgOptions.msgYesBtn)=='string' )
	  top.$("msgYesBtn").innerHTML = _msgOptions.msgYesBtn;
  if (typeof(_msgOptions.msgNoBtn)=='string' )
	  top.$("msgNoBtn").innerHTML = _msgOptions.msgNoBtn; */
  
  top.$("msgBox").style.top = "298";
  top.$("msgBox").style.left = "398";
  top.$("msgBox").style.zIndex = "9000";
  top.$("msgCloseBtn").hide();
  top.$("msgYesBtn").show();
  top.$("msgNoBtn").show();
  top.$("msgBox").show();
}

function msgMethodeYes()
{
  masqueMsg();
  if( typeof(_msgOptions.methodeYes)=='function') {_msgOptions.methodeYes();} 
}

function msgMethodeNo()
{
  masqueMsg();
  if( typeof(_msgOptions.methodeNo)=='function') {_msgOptions.methodeNo();} 
}

function masqueMsg()
{
   masqueModal();
   top.$("msgBox").style.top = "0";
   //top.$("msgBox").style.width = "0";
   //top.$("msgBox").style.height = "0";
   top.$("msgBox").style.zIndex = "0";
   top.$("msgBox").hide();    
   if( typeof(_msgOptions.focus) == 'object' ) 
   {
	   _msgOptions.focus.focus();
	   _msgOptions.focus.select();
	 } 
}
  
function afficheModal()
{
  top.$("fondModal").style.width = "100%";
  top.$("fondModal").style.height = "100%";
  top.$("fondModal").style.zIndex = "2000";
  top.$("fondModal").style.backgroundColor = "#000000";
  top.$("fondModal").setOpacity(0.4);
  top.$("fondModal").show();    
}
function masqueModal()
{
  //if( top.$F("isClickable") == 'N' ) return;
    
  top.$("fondModal").style.width = "0";
  top.$("fondModal").style.height = "0";
  top.$("fondModal").style.zIndex = "0";
  top.$("fondModal").hide();    
}
</script>
</head>
<body>
 <div id="fondModal" style="position:absolute;display:none;margin: 0;width:0;height:0" onClick="masqueModal()">
    <input type="hidden" name="isClickable" id="isClickable" value="N">
  </div> 
  <div id=container>
  	<iframe id="haut" name="haut" src="haut.php" frameborder="0" scrolling=no></iframe>
    <div id="container_main">
    	<iframe id="menu" name="menu" src="menu.php" frameborder="0" scrolling=no></iframe>
    	<iframe id="principale" name="principale" src="principale.php" frameborder="0" scrolling=no></iframe>
      <div class="spacer"></div>
    </div>
  	<iframe id="piedPage" name="piedPage" frameborder="0" scrolling=no></iframe>
  </div>
  
  <div id="msgBox" class="msgBox" style="display:none">
    <div id="msgTitle" class="msgTitle">titre</div>
    <div id="msgContent" class="msgContent">messagemessagemessage<br>messagemessage</div>
    <div id="msgCloseBtn" class="msgCloseBtn" style="display:none"><a href="#" onClick="masqueMsg()">OK</a></div>
    <div style="padding: 0 0 3px; margin:0; text-align:center;"> 
      <div id="msgYesBtn" class="msgYesBtn" style="display:none"><a href="#" onClick="msgMethodeYes()">oui</a></div>
      <div id="msgNoBtn" class="msgNoBtn" style="display:none"><a href="#" onClick="msgMethodeNo()">non</a></div>
    </div> 
  </div>
</body>
</html>
<?php
 include $REP_INC . 'incCommentaire.php';
?>